<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>丹露-Matrix新增配置</title>
	<link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
	<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
	<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
	<link rel="stylesheet" type="text/css" href="css/matrixcss.css" />
	<link rel="stylesheet" type="text/css" href="css/indexMatrix.css" />
	<script src="js/index.js"></script>
	<script src="js/indexMatrix.js"></script>
	<script src="layer/layer.js"></script>
	<!--<script src="layer/layer.js"></script>-->
</head>
<body>
<div class="container" style="width:100%;height:auto">
	<div class="row" style="background-color:#4F94CD">
		<div class="col-lg-12">
			<h3 class="text-left" style="color:white">
				丹露-Matrix新增配置
			</h3>
		</div>
	</div>
	<div class="row">
		<div class="col-lg-12 column">

			<div class="tab" id="tabs-68154" style="margin-top:10px" >
					<ul class="nav nav-tabs">
						<li class="active">
							 <a href="#autoupdate" data-toggle="tab" >Matrix自动写入配置</a>
						</li>
						<li >
							 <a href="#backupversion" data-toggle="tab">Matrix备份版本配置</a>
						</li >
						<!--<li >-->
							 <!--<a href="#automerge" data-toggle="tab" id="envli">Matrix合并版本配置</a>-->
						<!--</li>-->
						<li style="float:right">
							 <a type="button" href="http://matrix.test.idanlu.com" class="btn">返回</a>
						</li>
						
					</ul>


				<div class="tab-content">

                    <div id="autoupdate" class="tab-pane active" style="margin-top:10px">
					
						<div class="panel panel-info" style="width:100%">
							<div class="panel-heading">
								<h3 class="panel-title"><span class="glyphicon glyphicon-pencil"></span>&nbsp;Matrix自动写入配置</h3>
							</div>
							<div class="panel-body">
								<table>
									<tr>
										
										<td style="width:10%"><label for="name">版本名称：</label></td>
										<td style="width:23%"><select  class="form-control" id="branchName" name="branch_name" onchange="getfileName(this.value)" style="font-family:微软雅黑;font-size:15px">
														<option>--请选择版本名称--</option>
													</select>
										</td>
										<td style="width:10%"><label for="name">环境名称：</label></td>
										<td style="width:23%"><select  class="form-control" id="envName" name="env_name" style="font-family:微软雅黑;font-size:15px">
														<option>--请选择要执行的环境--</option>
														<option  value = "web" >web测试环境</option >
														<option  value = "app" >app测试环境</option >
														<option  value = "hx" >hx测试环境</option >
											</select >
										</td>
										<td style="width:10%"><label for="name">执行状态：</label></td>
										<td style="width:23%"><select  class="form-control" id="excuteNum" name="env_name" style="font-family:微软雅黑;font-size:15px">
														<option>--请选择执行状态--</option>
														<option  value = "0" >未执行</option >
														<option  value = "1" >已执行</option >
											</select >
										</td>
									</tr>
								</table>
								<div style="margin-top:50px;margin-left:450px">
									<button class="btn btn-info" style="width:15%" onclick="seachAll()">查询</button>
									<button class="btn btn-info" style="width:15%;margin-left:100px" onclick="cancel()">取消</button>
								</div>
							</div>
						</div>
						
						<div class="panel panel-info" style="width:100%">
							<div class="panel-body">
								<table class="table table-striped table-hover" style="margin-top:5px">
									<thead>
										<tr bgcolor="#D9EDF7">
											<th>file_name</th>
											<th>branch_name</th>
											<th>excute_web</th>
											<th>excutetime_web</th>
											<th>excute_app</th>
											<th>excutetime_app</th>
											<th>excute_hx</th>
											<th>excutetime_hx</th>
											<th>creat_time</th>
											<th>option</th>
										</tr>
									</thead>
									<tbody id="configTab">
										
									</tbody>
									
								</table>
							</div>
						</div>
                        
                    </div>

                    <div class="tab-pane" id="backupversion">
						<div class="panel panel-info" style="width:50%">
							<div class="panel-heading">
								<h3 class="panel-title"><span class="glyphicon glyphicon-copy"></span>&nbsp;Matrix备份版本配置</h3>
							</div>
							<div class="panel-body">
								<form id="autoCopyForm" action="/submit_backup/" method="post" onsubmit="return autoCopy();">
									<div>
										<table style="border-collapse:separate; border-spacing:0px 30px;width:100%">
											<tr>
												<td width="20%"><span class="tip" style="font-family:微软雅黑;font-size:20px" >select Env:</span></td>
												<td width="80%"><select  class='branchSel' id="envName2" name="env_name2" style="width:60%;font-family:微软雅黑;font-size:15px">
														<option>--请选择版本所在的环境--</option>
														<option  value = "vpc_web" >web测试环境</option >
														<option  value = "vpc_app" >app测试环境</option >
														<option  value = "hx" >hx测试环境</option >
													</select >
												</td>
											</tr>
											<tr>
												<td width="20%"><span class="tip" style="font-family:微软雅黑;font-size:20px">select Branch:</span></td>
												<td><select  class='branchSel' id="branchName2" name="branch_name2" style="width:60%;font-family:微软雅黑;font-size:15px">
														<option>--请选择需要备份的版本--</option>
													</select>
												</td>
											</tr>
							
										</table>
									</div>
									<div class="tab-pane">
										<input type="submit" class="btn" style="background-color:#4F94CD;color:white;margin-left:21%;margin-top:30px;width:20%" value="提交">
										<input type="submit" class="btn" style="background-color:#4F94CD;color:white;margin-top:30px;width:20%;margin-left:40px;" value="取消">
										
									</div>
								</form>
							</div>
						</div>
                    </div>

					<!--<div class="tab-pane" id="automerge">-->
                        <!--<form action="/submit_merge/" method="post">-->
                            <!--<div class="sub2-item">-->
                                <!--<span class="tip">选择从哪个分支:</span>-->
                                    <!--<select  class='branchSel' id="branchName3" name="branch_name3">-->
                                        <!--<option>&#45;&#45;请选择需要备份的版本&#45;&#45;</option>-->
                                    <!--</select>-->
                            <!--</div>-->

                            <!--<div class="sub2-item">-->
                                <!--<span class="tip">选择哪个文件:</span>-->
                                    <!--<select  class='branchSel' id="envName3" name="env_name3">-->
                                        <!--<option>&#45;&#45;请选择源环境&#45;&#45;</option>-->
                                        <!--<option  value = "vpc_web" >web测试环境</option >-->
                                        <!--<option  value = "vpc_app" >app测试环境</option >-->
                                        <!--<option  value = "hx" >hx测试环境</option >-->
                                    <!--</select >-->
                            <!--</div>-->

                            <!--<div class="sub2-item">-->
                                <!--<span class="tip">更新到哪个环境:</span>-->
                                    <!--<select  class='branchSel' id="branchName3" name="branch_name3">-->
                                        <!--<option>&#45;&#45;请选择需要备份的版本&#45;&#45;</option>-->
                                    <!--</select>-->
                            <!--</div>-->

                            <!--<div class="tab-pane">-->
                                <!--<input type="submit" class="btn" style="background-color:#4F94CD;color:white" value="提交">-->
                                <!--<a type="button" href="http://matrix.test.idanlu.com" class="btn">返回</a>-->
                            <!--</div>-->
                        <!--</form>-->

					<!--</div>-->
				</div>
			</div>
		</div>
	</div>
</div>

<!-- 模态框（Modal） -->
<div class="modal fade" id="myModalAutoWrite" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
					&times;
				</button>
				<h4 class="modal-title" id="myModalLabel">
					Matrix自动写入配置
				</h4>
			</div>
			<form id="autoWriteForm" action="/submit_data/" method="post" onsubmit="return autoWrite();">
			<div class="modal-body">
				<table style="width:70%;margin-left:70px;height:180px">
					<tr>
						<td><label style="color:red">*</label>自动写入配置文件名:</td>
						<td><input type="text" class="form-control" placeholder="请输入配置文件名" id="filename" readonly="readonly"></td>
					</tr>
					<tr>
						<td><label style="color:red">*</label>版本名称:</td>
						<td><input type="text" class="form-control" placeholder="请输入版本名" id="versionname"></td>
					</tr>
					<tr>
						<td><label style="color:red">*</label>环境名称:</td>
						<td><select class="form-control" id="env" >
								<option>--请选择版本所在的环境--</option>
								<option  value = "vpc_web" >web测试环境</option >
								<option  value = "vpc_app" >app测试环境</option >
								<option  value = "hx" >hx测试环境</option >
							</select>
														
						</td>
					</tr>
					
				</table>
			</div>
			<div class="modal-footer">
				<input type="submit" class="btn" style="background-color:#4F94CD;color:white;margin-top:20px;width:15%;margin-left:40px;" value="取消" data-dismiss="modal">
				<input type="submit" class="btn" style="background-color:#4F94CD;color:white;margin-top:20px;width:15%" value="提交">
			</div>
			</form>
		</div><!-- /.modal-content -->
	</div><!-- /.modal -->
</div>

</body>
</html>